{template 'header'}
{template 'mslide'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#370f05{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{padding:0 2% 0 0; overflow:hidden;margin-top:10px;}
	.box .box-item{float:left;text-align:center;display:block;text-decoration:none;outline:none;margin:0 0 2% 2%;width:48%;height:100px; background:#d47314; margin-bottom:8px;position:relative; color:#FFF;}
	.box .box-item i{display:inline-block; position:absolute; font-size:35px; color:#FFF; overflow:hidden;}
	.box .box-item img{display:inline-block; height:40px; margin:0 auto;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']}; font-size:16px; display:block; position:absolute; text-align:left; overflow:hidden;}
	.box .box-item.icon i{right:5px; bottom:5px; width:40px; height:40px;}
	.box .box-item.icon span{top:10px; left:10px; width:50%;}
	.box .box-item.pic{width:98%;}
	.box .box-item.pic i{width:65%; height:100px; line-height:100px; left:0;}
	.box .box-item.pic img{display:block; height:100px; margin:0 auto;}
	.box .box-item.pic span{width:31%; right:2%; top:30%;}
	.footer{color:#dddddd;}
</style>
<div class="box clearfix" style="margin-bottom:50px;">
	{php $num = 0;}
	{loop $list $row}
	{loop $children[$row['id']] $item}
	{php if($num == 0) $bg = '#d47314';}
	{php if($num == 1) $bg = '#50ad38';}
	{php if($num == 2) $bg = '#dd399a';}
	{php if($num == 3) $bg = '#1f75ae';}
	{php if($num == 4) $bg = '#543da5';}
	<a href="{$item['url']}" class="box-item {if $num == 2}pic{else}icon{/if}" style="background:{$bg};">
		
		<i class="{$item['icon']}" style=""></i>
		
		<span style="{$nav['css']['name']}" title="">{$item['title']}</span>
	</a>
	{php $num++; if($num > 4) $num = 0;}
	{/loop}
	{/loop}
</div>
{template 'footer'}